<template>
	<view>
		<view class="tdmsg">
			<view class="title">{{title}}</view>
			<view>
				<view class="item fs-24" :class="'item' + d.choose" v-for="(d, index) in list" :key="d.id">
					<view class="name">{{ d.name }}</view>
					<view class="text">{{ d.text }}</view>
					<view class="type">{{ d.type }}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"uni-tdmess",
		props:{
			title:{
				type:String,
				default:'信息'
			},
			list:{
				type:Array,
				default:()=>[{
					name: '地块类型',
					text: '大棚',
					choose:'dklx'
				}]
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
.tdmsg {
		padding: 24rpx 22rpx;
		
		background: #fff;
		border-radius: 8rpx;
		margin: 0 30rpx 30rpx;
		.title {
			color: #3e3e3e;
		}
		.item {
			display: flex;
			margin-top: 20rpx;
			color: #3e3e3e;
			align-items: center;
			.name {
				margin-right: 20rpx;
			}
			.type {
				margin-left: 14rpx;
			}
		}
		.itemdklx .text {
			background: #dbffec;
			border: 1px solid #07c160;
			border-radius: 6rpx;
			color: #12d05c;
			height: 44rpx;
			line-height: 44rpx;
			padding: 0 24rpx;
		}
		.itemzzzw .type {
			background: #eaf9ff;
			border: 1px solid #10b9ff;
			border-radius: 6rpx;
			color: #13b3ee;
			height: 32rpx;
			line-height: 32rpx;
			padding: 0 12rpx;
		}
	}
</style>